<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <script>
        //trimStart --- 负责清除字符串左边空白;
        //trimEnd ----- 负责清除字符串右边空白;
        let str = '     wain   ';
        console.log(str);
        console.log(str.trimStart());
    </script>
</body>
</html>